package com.ruoyi.web.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 新闻管理（新）对象 news
 *
 * @author drx
 * @date 2024-03-19
 */
@ApiModel("新闻管理")
public class News extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ApiModelProperty("主键")
    private Long id;

    /**
     * 药品id
     */
    @ApiModelProperty("药品id")
    private Long drugId;

    /**
     * 药品名称
     */
    @ApiModelProperty("药品名称")
    private String drugname;

    /**
     * 文章标题
     */
    @Excel(name = "文章标题")
    @ApiModelProperty("文章标题")
    private String name;

    /**
     * 主图
     */
    @Excel(name = "主图")
    @ApiModelProperty("主图")
    private String url;


    /**
     * 文章内容
     */
    @Excel(name = "文章内容")
    @ApiModelProperty("文章内容")
    private String content;

    /**
     * 作者来源
     */
    @Excel(name = "作者来源")
    @ApiModelProperty("作者来源")
    private String authorSource;

    /**
     * 状态 0 未发布 1 已发布
     */
    @Excel(name = "状态 0 未发布 1 已发布")
    @ApiModelProperty("状态 0 未发布 1 已发布")
    private String state;

    /**
     * 1/头条  2、置顶  3、推荐、4特推
     */
    @Excel(name = "1/头条  2、置顶  3、推荐、4特推")
    @ApiModelProperty("1/头条  2、置顶  3、推荐、4特推")
    private String label;

    /**
     * 分类
     */
    @Excel(name = "分类")
    @ApiModelProperty("分类")
    private String type;

    /**
     * 浏览量
     */
    @Excel(name = "浏览量")
    @ApiModelProperty("浏览量")
    private Long hits;

    /**
     * 关键词
     */
    @Excel(name = "关键词")
    @ApiModelProperty("关键词")
    private String keyword;

    /**
     * 关键词
     */
    @Excel(name = "描述")
    @ApiModelProperty("描述")
    private String description;


    /**
     * 创建人名称
     */
    @Excel(name = "创建人名称")
    @ApiModelProperty("创建人名称")
    private String createName;

    /**
     * 更新人名称
     */
    @Excel(name = "更新人名称")
    @ApiModelProperty("更新人名称")
    private String updateName;

    private Date startTime;

    private Date endTime;

    private Integer size;

    public Long getDrugId() {
        return drugId;
    }

    public void setDrugId(Long drugId) {
        this.drugId = drugId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @ApiModelProperty("温馨提示")
    private String warmPrompt;

    @ApiModelProperty("参考资料")
    private String referenceMaterial;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getWarmPrompt() {
        return warmPrompt;
    }

    public void setWarmPrompt(String warmPrompt) {
        this.warmPrompt = warmPrompt;
    }

    public String getReferenceMaterial() {
        return referenceMaterial;
    }

    public void setReferenceMaterial(String referenceMaterial) {
        this.referenceMaterial = referenceMaterial;
    }



    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    /**
     * 是否删除（0否；1是）
     */
    @ApiModelProperty("是否删除（0否；1是）")
    private String delFlag;

    public void setDrugname(String drugname) {
        this.drugname = drugname;
    }

    public String getDrugname() {
        return drugname;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }


    public String getAuthorSource() {
        return authorSource;
    }

    public void setAuthorSource(String authorSource) {
        this.authorSource = authorSource;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getState() {
        return state;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getLabel() {
        return label;
    }

    public void setHits(Long hits) {
        this.hits = hits;
    }

    public Long getHits() {
        return hits;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public String getCreateName() {
        return createName;
    }

    public void setUpdateName(String updateName) {
        this.updateName = updateName;
    }

    public String getUpdateName() {
        return updateName;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("content", getContent())
                .append("description", getDescription())
                .append("authorSource", getAuthorSource())
                .append("state", getState())
                .append("label", getLabel())
                .append("hits", getHits())
                .append("keyword", getKeyword())
                .append("createBy", getCreateBy())
                .append("createName", getCreateName())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateName", getUpdateName())
                .append("updateTime", getUpdateTime())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
